package com.dlink.sqljobsync.utils;

import com.dlink.sqljobsync.autoconfig.SqlJobAutoConfig;
import com.dlink.sqljobsync.service.DlinkSqlSyncFaceService;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.IOException;

/**
 * 自动执行同步脚本
 * @author HuangJun
 */
@Slf4j
public class DlinkSyncHttpTool {

//    @Setter
//    private static SqlJobAutoConfig sqlJobAutoConfig;

    @Setter
    private static DlinkSqlSyncFaceService dlinkSqlSyncFaceService;


    public static String executeSql(){
//        sqlJobAutoConfig.executeSql();
        System.out.println(123123123);
        dlinkSqlSyncFaceService.executeSql();
        return "执行成功";
    }
}
